#include <string.h>
#include "../common/util.h"


int main() {
	char * str1 = strdup("abc def");
	char * str2 = strdup(" abc def");
	char * str3 = strdup(" abc def    ");
	char * str4 = strdup("abc def    ");
	char * str5 = strdup("");
	char * str6 = strdup("a");
	char * str7 = strdup(" ");

	printf("str1 = [%s], trim(str1) = [%s]\n", str1, gc_trim(str1));
	printf("str2 = [%s], trim(str2) = [%s]\n", str2, gc_trim(str2));
	printf("str3 = [%s], trim(str3) = [%s]\n", str3, gc_trim(str3));
	printf("str4 = [%s], trim(str4) = [%s]\n", str4, gc_trim(str4));
	printf("str5 = [%s], trim(str5) = [%s]\n", str5, gc_trim(str5));
	printf("str6 = [%s], trim(str6) = [%s]\n", str6, gc_trim(str6));
	printf("str7 = [%s], trim(str7) = [%s]\n", str7, gc_trim(str7));
	return 0;
}
